Q3Set_Get
You can use theQ3Set_Get
function to get the data associated with an element in a set.
TQ3Status Q3Set_Get ( TQ3SetObject set, TQ3ElementType type, void *data);
set
- A set object.
type
- An element type.
data
- On entry, a pointer to a structure large enough to hold the data associated with elements of the specified type. On exit, a pointer to the data of the element having the specified type.
DESCRIPTION
TheQ3Set_Get
function returns, in thedata
parameter, the data currently associated with the element whose type is specified by thetype
parameter in the set specified by theset
parameter. If no element of that type is in the set,Q3Set_Get
returnskQ3Failure
.If you pass the value
NULL
in thedata
parameter, no data is copied back to your application. (PassingNULL
might be useful simply to determine whether a set contains a specific type of element.)If the specified element type is a custom element type,
Q3Set_Get
uses the custom type'skQ3MethodTypeElementCopyGet
custom method. See the chapter "QuickDraw 3D Objects" for complete information on custom element types.